import React, { useState } from 'react'
import Child from './child'

function welcome() {
  const [msg,setMsg] = useState('哈哈哈')
  const changeMsg=()=>{
    setMsg('啦啦啦')
  }

  return (
    <div>
      {/* 父传子 */}
      欢迎来到后台管理系统
    <Child msg={msg} changeMsg={changeMsg}></Child>
    </div>
  )
}

export default welcome
